﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register_step2.aspx.cs" Inherits="register_step2" %>
<%@ Register Src="CommonSearch.ascx" TagName="CommonSearch" TagPrefix="uc2" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>注册--完善个人资料</title>
    <link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="style/common.css" />
    <link rel="stylesheet" type="text/css" href="style/Segment/Header.css" />
    <link rel="stylesheet" type="text/css" href="style/Segment/Search.css" />
    <link rel="stylesheet" type="text/css" href="style/Segment/Registerandsign.css" />
    <link rel="stylesheet" type="text/css" href="style/Segment/Footer.css" />
    <script src="js/footrip.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var n;
    var j = 0;
    var d = new Date().getDate();
    var m = new Date().getMonth();
    var y = new Date().getFullYear();
    var YYYY;
    var MM;
    var DD;
    var MonHead = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    //当月份发生变动
    function MMDD(str)
    {
    var YYYYvalue = YYYY.options[YYYY.selectedIndex].value;
    if (str == ""){alert("The mounth is null");    return;}
    n = MonHead[str - 1];
    if (str == 2 && IsPinYear(YYYYvalue)) n++;
    writeDay(n);
    }

    //更新日期
    function writeDay(n)
    {
    DD.options.length = n;
    for (var i=1; i<(n+1); i++)
    {
        DD.options[i] = new Option(i,i);
    }
    DD.selectedIndex = d;
    }
    
    function GEId(sID)
    {
          try{return document.getElementById(sID)}catch(e){};
    }
    
    function initBirthDay()
    {
        YYYY = GEId("birthYear");
        MM = GEId("birthMonth");
        DD = GEId("birthDay");
        //当年份发生变动
        function YYYYMM(str)
        {
        var MMvalue = MM.options[MM.selectedIndex].value;
        if (MMvalue == ""){alert("The mounth is null"); return;}
        n = MonHead[MMvalue - 1];
        if (MMvalue ==2 && IsPinYear(str)) n++;
        writeDay(n);
        }
        
        //初始化年
        YYYY.options.length = 0;
        for (var i = y-30; i<y+1; i++)
        {
        YYYY.options[j] = new Option(i,i);
        j++
        }
        YYYY.selectedIndex = j-1;
        YYYY.onchange = function()
        {
            YYYYMM(YYYY.options[YYYY.selectedIndex].value);
        }

        //初始化月
        MM.options.length = 12;
        for (var i = 1; i<13; i++)
        {
        MM.options[i] = new Option(i,i);
        }
        MM.selectedIndex = m+1;
        MM.onchange = function()
        {
            MMDD(MM.options[MM.selectedIndex].value);
        }

        //初始化日
        n = MonHead[m];
        var YYYYvalue = YYYY.options[YYYY.selectedIndex].value;
        if (m ==1 && IsPinYear(YYYYvalue)) n++;
        writeDay(n); 
    }

    //判断是否闰平年
    function IsPinYear(year){ return(0 == year%4 && (year%100 !=0 || year%400 == 0))}
    
    //-->
    </script>
    <script type="text/javascript">
    window.onload = function()
    {
        initBirthDay();
        GetProvince("listProvince","listCity");
        GetHomeProvince();
        SelectTripHobby();
        SelectTripType();
    }
    function btnUpdateUP_onclick() {
        UpdateUserProfile(true);
    }

    </script>
</head>
<body id="normalbody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
       <Services>
           <asp:ServiceReference Path="WSLogin.asmx" />
       </Services>
   </asp:ScriptManager>    
<div id="container">
    <uc1:Header ID="Header1" runat="server" />
    <uc2:CommonSearch ID="CommonSearch1" runat="server" />
 
   <!--Main-->
   <div id="main">
      <div id="loaduserPic">
      <div class="welcomeInfo">陈毅<span>欢迎你注册足迹网,完成所有注册只需2步，之后我们能更好地为您服务</span></div>
      <div class="welcomeInfo"><img src="images/step1_a.jpg" /> <img src="images/arrow.jpg" /> <img src="images/step2.jpg" /> <img src="images/arrow.jpg" /> <img src="images/step3_a.jpg" /></div>
      <div class="boxTitle"><a href="register_step1.aspx">1. 上传个人头像</a> | <font class="select">2. 完善个人资料</font> | <a href="register_step3.aspx">3. 标记我的足迹</a></div>
       <div class="stepBox">
         <table>
           <tr>
             <td style="width:100px; text-align:right; height:40px;"><b>我的性别：</b></td>
             <td style="width:10px;"></td>
             <td style="width:350px;"><input type="radio" id="male" checked="checked" name="gender" class="inputNone"/>男&nbsp;&nbsp;&nbsp;<input type="radio" name="gender" class="inputNone"/>女</td>
             <td><input type="checkbox" class="inputNone"/> 不公开我的性别</td>
           </tr>
           <tr>
             <td style="text-align:right; height:40px;"><b>我的生日：</b></td>
             <td></td>
             <td ><select id="birthYear" name="birthYear">
                 <option value="">----</option>
               </select>
               年
               <select id="birthMonth" name="birthMonth">
                 <option value="">----</option>
               </select>
               月
               <select id="birthDay" name="birthDay">
                 <option value="">----</option>
               </select>
               日</td>
             <td><input id="isPublicBirth" type="checkbox" class="inputNone"/> 不公开我的生日&nbsp;&nbsp;&nbsp;&nbsp;</td>
           </tr>
           <tr>
             <td style="text-align:right; height:40px;"><b>我的家乡：</b></td>
             <td></td>
             <td><select id="listHomeProvince"></select>省
                 <select id="listHomeCity"></select>市
             </td>
             <td><input id="isPublicHomeTown" type="checkbox" class="inputNone"/> 不公开我的家乡</td>
           </tr>
           <tr>
             <td style="text-align:right; height:40px;"><b>现居住地：</b></td>
             <td></td>
             <td><input type="radio" class="inputNone" name="locate" checked="checked"/>
               中国&nbsp;
               <input type="radio" class="inputNone" name="locate"/>
               海外&nbsp;&nbsp;&nbsp;
               <select id="listProvince"></select>省
                <select id="listCity"></select>市
              </td>
             <td><input id="isPublicAddress" type="checkbox" class="inputNone"/> 不公开我的现居住地</td>
           </tr>
           <tr>
             <td style="text-align:right; height:40px;" valign="top"><b>旅游爱好：</b></td>
             <td></td>
             <td style="line-height:30px;" id="tripHobby">

             </td>
             <td></td>
           </tr>
           <tr>
             <td style="text-align:right; height:40px;" valign="top"><b>旅游类型：</b></td>
             <td></td>
             <td id="tripType">
             </td>
             <td></td>
           </tr>
           <tr>
           <td style="text-align:right; height:40px;" valign="top"><b>联系方式：</b></td>
           <td></td>
           <td>手机：<input id="mobilePhone" type="text" /><p style="padding:8px 0px;">QQ：&nbsp;&nbsp;<input id="qq" type="text" /></p><p>MSN：<input id="msn" type="text" /></p></td>
           <td></td>
           </tr>
           <tr><td colspan="4" height="20"></td></tr>
           <tr style="text-align:right; height:40px;">
             <td></td>
             <td></td>
             <td style="text-align:left;"><input type="button" class="butn_green" value="保 存" id="btnUpdateUP" onclick="return btnUpdateUP_onclick()" />
               &nbsp;&nbsp;&nbsp;<a href=""><b>跳过下次在说</b></a></td>
             <td></td>
           </tr>
         </table>
       </div>
      
      </div>
   </div>
   
   

<!---Footer--->
<div id="footer">
<span>Copyright © 2008 Footrip.com All Rights Reserved</span>
<ul>
<li><a href="">关于我们</a> | </li>
<li><a href="">广告联系</a> | </li>
<li><a href="">隐私保护</a> | </li>
<li><a href="">特色功能</a> | </li>
<li><a href="">使用帮助</a> | </li>
<li><a href="">建议反馈</a> | </li>
</ul>
<div class="clear"></div>
</div>

</div>
    </form>
</body>
</html>
